# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/27 16:53 
@Author  : ZhangShenao 
@File    : dict_generation_exp.py 
@Desc    : 字典生成式
字典生成式的写法:
{key:value for item in Iterable}
"""

# 给定一个str,以每个字符的大写形式为key,小写形式为value,生成dict
upper2lower = {c.upper(): c.lower() for c in 'aBCDefG'}
print(upper2lower)
